//
//  UIImage+YTExtension.h
//  YiTuUserClient
//
//  Created by 石少庸 on 2017/3/8.
//  Copyright © 2017年 YiTu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (YTExtension)

/**
 给图片加一个高斯模糊效果

 @param blur 模糊值
 @return UIImage
 */
- (UIImage *)yt_boxblurImageWithBlur:(CGFloat)blur;

+ (UIImage *)yt_imageWithColor:(UIColor *)color;

+ (UIImage *)yt_imageWithColor:(UIColor *)color alpha:(CGFloat)alpha;

- (UIImage *)yt_imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize;

+ (NSString *)yt_imageToString:(UIImage *)image;

@end
